package com.disgnpattern.learn.chapter12;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/11/19 15:05
 * @descrition 旧的测试
 * @Version 1.0
 * @mail deng_xiyan@topsec.com.cn
 */
public class TestOld {
    public static void main(String[] args) {
        Stock1 stock1 = new Stock1();
        Stock2 stock2 = new Stock2();
        Stock3 stock3 = new Stock3();
        NationalDebt1 nationalDebt1 = new NationalDebt1();
        Realty1 realty1 = new Realty1();
        stock1.sell();
        stock1.buy();
        stock2.sell();
        stock2.buy();
        stock3.sell();
        stock3.buy();
        nationalDebt1.sell();
        nationalDebt1.buy();
        realty1.sell();
        realty1.buy();

    }
}